﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;

namespace Sinacor.Service.Infra.AuthorizationService.Service.DataContract.Response
{
	[DataContract]
	public class ModuleResponse
	{
		private string _id;
		private string _name;
		private List<MenuItemResponse> _items;
        private List<RoleResponse> _roles;

		[DataMember(IsRequired = false)]
		public string Id
		{
			get { return _id; }
			set { _id = value; }
		}

		[DataMember(IsRequired = false)]
		public string Name
		{
			get { return _name; }
			set { _name = value; }
		}

		[DataMember(IsRequired = false)]
		public List<MenuItemResponse> Items
		{
			get { return _items; }
			set { _items = value; }
		}

        [DataMember(IsRequired = false)]
        public List<RoleResponse> Roles
        {
            get { return _roles; }
            set { _roles = value; }
        }
	}
}